package xyz.chaobei.mongo.repository;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import xyz.chaobei.mongo.model.OrgUser;

@Repository
public interface OrgUserRepository extends MongoRepository<OrgUser, Integer> {

    /**
     * 通过名称查询
     *
     * @param username
     * @return
     */
    OrgUser findOrgUserByUsername(String username);

}
